f sharp functions calling each other

52

f sharp functions calling each other -

module rec PingPong = // <------ rec keyword here.

    let pong() = 
        printfn "pong"
        ping() 

    let ping () = 
        printfn "ping"
        pong()

Comments

Submit
0 Comments